//
// Created by Zhangwj on 2023/9/27.
//

#ifndef COMPILE_TASK2_FORSTMTNODE_H
#define COMPILE_TASK2_FORSTMTNODE_H


#include "SyntaxTreeNode.h"
#include "../Parser.h"
#include "LValNode.h"

class ForStmtNode : public SyntaxTreeNode {
public:
    // ForStmt → LVal '=' Exp
    std::unique_ptr<LValNode> LVal;
    std::unique_ptr<ExpNode> Exp;

    static std::unique_ptr<ForStmtNode> ForStmtParser(Parser &parser);
};


#endif //COMPILE_TASK2_FORSTMTNODE_H
